package com.ruoyi.recipe.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 食谱类别对象 recipe_category
 * 
 * @author ruoyi
 * @date 2024-11-10
 */
public class RecipeCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 食谱类别ID */
    private Long categoryId;

    /** 食谱类别 */
    @Excel(name = "食谱类别")
    private String categoryName;

    @Excel(name = "图片")
    private String categoryPic;

    /** 食谱类别排序 */
    @Excel(name = "食谱类别排序", cellType = Excel.ColumnType.NUMERIC)
    private Integer categorySort;

    /** 食谱类别状态（0正常 1停用） */
    @Excel(name = "食谱类别状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 显示在小程序首页（0显示 1隐藏） */
    private String visible;

    /** 标签ID */
    private Long tagId;

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }

    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }

    public String getCategoryPic() {
        return categoryPic;
    }

    public void setCategoryPic(String categoryPic) {
        this.categoryPic = categoryPic;
    }

    public Integer getCategorySort() {
        return categorySort;
    }

    public void setCategorySort(Integer categorySort) {
        this.categorySort = categorySort;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setTagId(Long tagId)
    {
        this.tagId = tagId;
    }

    public Long getTagId()
    {
        return tagId;
    }

    public String getVisible() {
        return visible;
    }

    public void setVisible(String visible) {
        this.visible = visible;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("categoryId", getCategoryId())
            .append("categoryName", getCategoryName())
            .append("categoryPic", getCategoryPic())
            .append("categorySort", getCategorySort())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("visible", getVisible())
            .toString();
    }
}
